package com.logistics.utils.enums;

public enum PickStatusEnum {
    STATE_IN("0","拣配中"),
    STATE_SUCCESS("10","拣配完成"),
    STATE_DELIVERY_IN("20","配送中"),
    DELIVERY_STATE_SUCCESS("30","配送完成"),

    DELIVERY_STATE_FAIL("40","配送失败"),

    DELIVERY_STATE_CANCEL("-10","取消配送"),
    DELIVERY_STATE_LOCK("99","锁定");

    public String code;
    public String name;
    PickStatusEnum(String key,String value){
        this.code = key;
        this.name = value;
    }
    PickStatusEnum(){

    }
    public static String getName(String code) {
        for (PickStatusEnum c : PickStatusEnum.values()) {
            if (c.getCode().equals(code) ) {
                return c.name;
            }
        }
        return "";
    }

    public String getCode() {
        return code;
    }
}
